package com.gill.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gill.exception.CommonServiceException;
import com.gill.vo.DescribeActorsRespVO;
import com.gill.vo.DescribeFilmRespVO;
import com.gill.vo.DescribeFilmsRespVO;
import com.gill.vo.FilmSavedReqVO;

public interface FilmService {

    /**
     * 获取演员列表
     */
    IPage<DescribeActorsRespVO> describeActors(int nowPage, int pageSize) throws CommonServiceException;

    /**
     * 获取电影列表
     */
    IPage<DescribeFilmsRespVO> describeFilms(int nowPage, int pageSize) throws CommonServiceException;

    /**
     * 根据主键获取电影信息
     */
    DescribeFilmRespVO describeFilmById(String filmId) throws CommonServiceException;

    /**
     * 保存电影信息
     */
    void saveFilm(FilmSavedReqVO filmSavedReqVO) throws CommonServiceException;
}
